<?php

namespace app\modules\lenders\models;

use Yii;

/**
 * This is the model class for table "rah_bankapply".
 *
 * @property integer $bankIDPK
 * @property integer $bankID
 * @property integer $borrowerID
 * @property integer $lenderID
 * @property string $bankCity
 * @property string $bankUserName
 * @property string $bankName
 * @property string $branchBankName
 * @property string $cardID
 * @property string $tableName
 * @property integer $tablePK
 * @property string $province
 * @property string $city
 * @property string $county
 * @property string $lenderStatus
 * @property string $updateStatus
 * @property string $comments
 */
class Bankapply extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'rah_bankapply';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['bankID', 'borrowerID', 'lenderID', 'tablePK'], 'integer'],
            [['bankCity', 'bankName'], 'string', 'max' => 100],
            [['bankUserName', 'tableName', 'province', 'city', 'county', 'lenderStatus'], 'string', 'max' => 50],
            [['branchBankName'], 'string', 'max' => 200],
            [['cardID'], 'string', 'max' => 30],
            [['updateStatus'], 'string', 'max' => 20],
            [['comments'], 'string', 'max' => 500],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'bankIDPK' => '表自增主键',
            'bankID' => 'rah_bank主键',
            'borrowerID' => 'Borrower ID',
            'lenderID' => 'Lender ID',
            'bankCity' => 'Bank City',
            'bankUserName' => '开户姓名',
            'bankName' => '开户行名称',
            'branchBankName' => '分/只行名称',
            'cardID' => '卡号',
            'tableName' => 'Table Name',
            'tablePK' => 'rah_lender.lenderID',
            'province' => '省/直辖市',
            'city' => '城市',
            'county' => 'County',
            'lenderStatus' => '申请状态',
            'updateStatus' => '数据状态，编辑还是新增',
            'comments' => '备注',
        ];
    }
}
